from rest_framework.routers import DefaultRouter
from . import views


# 创建路由对象
router = DefaultRouter()
# 注册路由
router.register(r'areas', views.AreasViewSet, base_name='areas')

# 定义视图集路由
urlpatterns = [

]

# 追加路由
urlpatterns += router.urls